package dataBase;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class Level {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key; 
	@Persistent
	private Key currentStatusKey;
	@Persistent
	private String bizUserName;
	@Persistent
	private String currentStatusString;
	@Persistent
	private Date startTime;
	@Persistent
	private Date endTime;

	public Key getKey() {
		return key;
	}
	public void setKey(Key key) {
		this.key = key;
	}
	public Key getcurrentStatusKey() {
		return currentStatusKey;
	}
	public void setcurrentStatusKey(Status currentStatus) {
		this.currentStatusKey = currentStatus.getKey();
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public void setcurrentStatusKey(Key getcurrentStatusKey) {
		this.currentStatusKey = getcurrentStatusKey;
		
	}
	
	public String getCurrentStatusString() {
		return currentStatusString;
	}
	public void setCurrentStatusString(String currentStatusString) {
		this.currentStatusString = currentStatusString;
	}
	public String getBizUserName() {
		return bizUserName;
	}
	public void setBizUserName(String bizUserName) {
		this.bizUserName = bizUserName;
	}
	
}
